package com.jingdianjichi.auth.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jingdianjichi.auth.infra.basic.entity.AuthUser;
import com.jingdianjichi.auth.infra.basic.service.AuthUserService;
import com.jingdianjichi.auth.infra.basic.mapper.AuthUserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 20432
* @description 针对表【auth_user(用户信息表)】的数据库操作Service实现
* @createDate 2025-10-19 12:46:30
*/
@Service
public class AuthUserServiceImpl extends ServiceImpl<AuthUserMapper, AuthUser>
    implements AuthUserService{

    @Resource
    private AuthUserMapper authUserMapper;
    @Override
    public Integer insert(AuthUser authUser) {
        return authUserMapper.insert(authUser);
    }

    @Override
    public Integer update(AuthUser authUser) {
        return authUserMapper.updateById(authUser);
    }

    @Override
    public List<AuthUser> getByCondition(AuthUser authUser) {
        return authUserMapper.getByCondition(authUser);
    }
}




